<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-touch-fullscreen" content="yes">
		<meta name="format-detection" content="telephone=no;email=no">

		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/iconfont.css">
		<link rel="stylesheet" href="../../css/style.css">
		<title>外链新闻</title>
	</head>

	<body>
		<header class="mui-bar mui-bar-nav navbar-default">
			<a class="mui-action-back mui-icon iconfont mui-pull-left c-white">&#xe603;</a>
			<h1 class="mui-title c-white">外链新闻</h1>
		</header>
		<iframe id="outerLinkFrame" frameborder="0"></iframe>

		<script src="../../js/mui.min.js"></script>
		<script src="../../js/common.js"></script>
		<script>
			mui.init({
				beforeback: function() {
					var modeFlag = localStorage.getItem("modeFlag");
					if (modeFlag) {
						plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
						plus.navigator.setStatusBarBackground("#000");
					} else {
						var ws = plus.webview.currentWebview().opener();
						if (ws.id == "news_list.html") {
							plus.navigator.setStatusBarStyle("UIStatusBarStyleDefault");
							plus.navigator.setStatusBarBackground("#fefefe");
						}
					}
					return true;
				},
				swipeBack: true //启用右滑关闭功能
			});
			//添加night自定义事件监听
			/*window.addEventListener('night', function(event) {
				lkg.nightMode();
			});*/
			mui.plusReady(function() {
				var modeFlag = localStorage.getItem("modeFlag");
				if (modeFlag) {
					plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
					plus.navigator.setStatusBarBackground("#000");
				} else {
					plus.navigator.setStatusBarStyle("UIStatusBarStyleBlackOpaque");
					plus.navigator.setStatusBarBackground("#159ceb");
				}
				var self = plus.webview.currentWebview();
				var outerLink = self.outerLinkUrl;
				var outerFrame = document.getElementById("outerLinkFrame");
				outerFrame.style.width = plus.screen.resolutionWidth + "px";
				outerFrame.style.height = plus.screen.resolutionHeight + "px";
				outerFrame.style.marginTop = "44px";
				outerFrame.src = outerLink;
			});
		</script>
	</body>

</html>